package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHouseMajordomoMapper;
import com.ruoyi.system.domain.HyHouseMajordomo;
import com.ruoyi.system.service.IHyHouseMajordomoService;

/**
 * 管家设置Service业务层处理
 * 
 * @author wangjiangbo
 * @date 2025-01-10
 */
@Service
public class HyHouseMajordomoServiceImpl implements IHyHouseMajordomoService 
{
    @Autowired
    private HyHouseMajordomoMapper hyHouseMajordomoMapper;

    /**
     * 查询管家设置
     * 
     * @param id 管家设置主键
     * @return 管家设置
     */
    @Override
    public HyHouseMajordomo selectHyHouseMajordomoById(Long id)
    {
        return hyHouseMajordomoMapper.selectHyHouseMajordomoById(id);
    }

    /**
     * 查询管家设置列表
     * 
     * @param hyHouseMajordomo 管家设置
     * @return 管家设置
     */
    @Override
    public List<HyHouseMajordomo> selectHyHouseMajordomoList(HyHouseMajordomo hyHouseMajordomo)
    {
        return hyHouseMajordomoMapper.selectHyHouseMajordomoList(hyHouseMajordomo);
    }

    /**
     * 新增管家设置
     * 
     * @param hyHouseMajordomo 管家设置
     * @return 结果
     */
    @Override
    public int insertHyHouseMajordomo(HyHouseMajordomo hyHouseMajordomo)
    {
        return hyHouseMajordomoMapper.insertHyHouseMajordomo(hyHouseMajordomo);
    }

    /**
     * 修改管家设置
     * 
     * @param hyHouseMajordomo 管家设置
     * @return 结果
     */
    @Override
    public int updateHyHouseMajordomo(HyHouseMajordomo hyHouseMajordomo)
    {
        return hyHouseMajordomoMapper.updateHyHouseMajordomo(hyHouseMajordomo);
    }

    /**
     * 批量删除管家设置
     * 
     * @param ids 需要删除的管家设置主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseMajordomoByIds(Long[] ids)
    {
        return hyHouseMajordomoMapper.deleteHyHouseMajordomoByIds(ids);
    }

    /**
     * 删除管家设置信息
     * 
     * @param id 管家设置主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseMajordomoById(Long id)
    {
        return hyHouseMajordomoMapper.deleteHyHouseMajordomoById(id);
    }
}
